function saveFile2(I, A, B, Phi, Delta, data_filepath, filename, algorithmsName)
    [M,N] = size(A);
    F = length(Delta);
    save([data_filepath, filename,'-A',algorithmsName,'.mat'],'A');
    save([data_filepath, filename,'-B',algorithmsName,'.mat'],'B');
    save([data_filepath, filename,'-Phi',algorithmsName,'.mat'],'Phi');
    for f = 1:F
        delta = Delta{f,1};
        save([data_filepath, filename,'-Delta-',int2str(f),algorithmsName,'.mat'],'delta');
        epslion = A+B.*cos(Phi+delta) - I{f,1};
        epslion = epslion.^2;
        epslion = medfilt2(epslion,[9,9]);
        RMSE = sqrt(sum(epslion(:))/(M*N));
        save([data_filepath, filename,'-RMSE-',int2str(f),'.mat'],'RMSE');
    end
    standard_Phi = load('.\standard_Phi.mat');
    standard_Phi = standard_Phi.standard_Phi;
    %计算Phi的RMSE
    epslion_phi = abs(standard_Phi - Phi);
    epslion_phi(epslion_phi>pi) = 2*pi - epslion_phi(epslion_phi>pi);
    epslion_phi = epslion_phi.^2;
    RMSE_phi = sqrt(sum(epslion_phi(:))/(M*N));
    save([data_filepath, filename,'-RMSE_phi',algorithmsName,'.mat'],'RMSE_phi');
    fprintf('----------保存成功--------- \n');
end